import request from '../utils/http'

// 获取商品列表
// category1Id,category2Id是query参数
// category1Id表示从首页导航分类点击进入
// category1Id表示从分类导航分类点击进入
export const reqGetGoodsList = ({ page, limit, ...surplus }) => {
  return request.get('/goods/list/' + `${page}/${limit}`, surplus)
}
// 详情
export const reqGoodsDetail = (goodsId) => request.get('/goods/' + goodsId)
